<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="ru">
<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <meta http-equiv="Content-Language" content="ru" />
  <title><?= $title ?></title>
  <? foreach ($styles as $file => $type) echo HTML::style($file, array('media' => $type)), PHP_EOL ?>
  <? foreach ($scripts as $file) echo HTML::script($file), PHP_EOL ?>
  
</head>
<body>
    <div id="header">
        <span>Bahus&Hermes administrative system</span>
        <?= Html::anchor('admin/logout', 'выход')?>
    </div>
    <div id="menu">
        <ul>
            <?  $controller = Request::$initial->controller();
                foreach ($menu as $item)
                {
                    $class = (strpos($item['href'], $controller)) ? "class=\"current\"": "";
                    echo "<li><a href=\"{$item['href']}\" $class>{$item['name']}</a></li>";                
                }
            ?>
        </ul>
    </div>
    <div id="content">
        <?= $content ?>
    </div>
</body>
</html>
